package dao

import (
	"gorm.io/gorm"
	"time"
)

// 课程表
type Course struct {
	gorm.Model
	Name    string    `json:"name"`
	Status  int       `json:"status"`
	Coach   string    `json:"coach"`
	Price   float64   `json:"price"`
	Start   time.Time `json:"start"`
	End     time.Time `json:"end"`
	Space   string    `json:"space"`
	Address string    `json:"address"`
}

func (u *Course) TableName() string {
	return "course"
}
